Link to home
Start Free TrialLog in
Avatar of Member_2_1316035
Member_2_1316035

asked on

user control with <html> tags

Our designer comes up with a page header with javascript code in it.  The script makes image rollover.  Its code looks like

<html>
<head>
<script language="JavaScript">
function xxx()
...

</script>
<body onload="functionName()">

...
<img onMouseOver="functionName()"
...
</body>
</head>
</html>

 I have made the header as an user control and put it in every page.  But the html page viewer gets has <html> tags embeded in <p> tags since the user control introduces them.

Please advise how I can solve the problem.


Biang
ASKER CERTIFIED SOLUTION
Avatar of trevorhartman
trevorhartman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_1316035
Member_2_1316035

ASKER

So no onload in the <body> tag?
you don't need it.  the window.onLoad=functionName() takes care of that
-Trevor