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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnLoad script

Status
Not open for further replies.

iaswnidou

Programmer
Joined
Apr 19, 2005
Messages
140
Location
GR
Hello

In my asp.net's page HTML i add a script to be called inside the body tag.

<body MS_POSITIONING="GridLayout" onload="OnLoad('txtRent','rent')">

If i add the onload script to another page with different parameters then the moment i click on a link to be directed to that page, a pop up comes up mentioning if i want to debug. If i take the script out it's working fine again. Can i not have the same script on every page if i like?
 
You can have them on every page... but you need to include the referenced javascript include file (or inline javascript if it's not in a linked file) on each page as well.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
If that doesn't solve your problem, then next time you see the error, simply say "Yes" to the "Do you want do debug?" question, and debug your code to find the cause of the error.

Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top