Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


user control with <html> tags

Posted on 2004-08-12
Medium Priority
Last Modified: 2010-04-07
Our designer comes up with a page header with javascript code in it.  The script makes image rollover.  Its code looks like

<script language="JavaScript">
function xxx()

<body onload="functionName()">

<img onMouseOver="functionName()"

 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.

Question by:Jinghui Li
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

trevorhartman earned 2000 total points
ID: 11788898
get rid of the <html> tags.  something like this:

<script language="JavaScript">
function xxx()

window.onLoad= functionName();

<img onMouseOver="functionName()"


Author Comment

by:Jinghui Li
ID: 11788906
So no onload in the <body> tag?

Expert Comment

ID: 11788915
you don't need it.  the window.onLoad=functionName() takes care of that

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question