You need to sign in to do that
Don't have an account?
k practice
How to get URL parameter using javascript From visualforce page?
Hi,
function newDoc() {
window.top.location.href ='http://www.google.com/inquiry?property='+{!urlpropertyname};
alert({!urlpropertyname});
}
<apex:commandbutton value="getURL" onclick="newDoc();"/>
help me..
function newDoc() {
window.top.location.href ='http://www.google.com/inquiry?property='+{!urlpropertyname};
alert({!urlpropertyname});
}
<apex:commandbutton value="getURL" onclick="newDoc();"/>
help me..
In your command button function you just pass required URL paramter. Below is the sample code to send parameters to javascript function
Best Regards,
Mithun.
All Answers
You can use below sample codes. (OR) (OR)
Best Regards,
Mithun.
I want when i click a getURL button URL redirect to below mensioned URL.Here URL Redirected but value is not get
function newDoc() {
window.top.location.href ='http://www.google.com/inquiry?property='+{!urlpropertyname};//urlpropertyname is apex variable
alert({!urlpropertyname});
}
<apex:commandbutton value="getURL" onclick="newDoc();"/>
URGENT please
In your command button function you just pass required URL paramter. Below is the sample code to send parameters to javascript function
Best Regards,
Mithun.