Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reset button

Status
Not open for further replies.

deddleston

Programmer
Oct 4, 2002
43
0
0
GB
I have this script:

<SCRIPT LANGUAGE=javascript>
<!--

function allowReset(){
if( window.confirm(&quot;Are you sure to clear the form?&quot;))
data.reset();
}
//-->
</SCRIPT>

But when i reset it, i need to reset the page so the url equals:
metadata_search_facility.jsp?solName=null&component_name=All%20IM%20Solutions&instanceName=All%20IM%20Component%20Databases

as well as reseting the form values M$ arn't the only option!
 
<input type=button value=&quot;Reset&quot; onClick=&quot;allowReset()&quot;>

<SCRIPT LANGUAGE=javascript>
<!--

function allowReset(){
if( window.confirm(&quot;Are you sure to clear the form?&quot;))
document.location = &quot;metadata_search_facility.jsp?solName=null&component_name=All%20IM%20Solutions&instanceName=All%20IM%20Component%20Databases
&quot;
}
//-->
</SCRIPT>
-----------------------------------------------------------------
DIM bulb
SET bulb = NEW brain

mikewolf@tst-us.com
 
ooooh i tried to put it inside the brackets with an action comment. M$ arn't the only option!
 
I'm not sure what you are saying. You may need parenthesis around the url....

function allowReset(){
if( window.confirm(&quot;Are you sure to clear the form?&quot;))
document.location = (&quot;metadata_search_facility.jsp?solName=null&component_name=All%20IM%20Solutions&instanceName=All%20IM%20Component%20Databases&quot;)
}
-----------------------------------------------------------------
DIM bulb
SET bulb = NEW brain

mikewolf@tst-us.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top