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
<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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you don't need it. the window.onLoad=functionName () takes care of that
-Trevor
-Trevor
ASKER