Rather than opening a new window, how can I add a text (or HTML code)
in the same HTML page, in a specific location?
The code I tried is the following:
<head>
<script language="JavaS cript">
function displayText()
{ document.write( "qwertyuiop ");
}
</script>
</head>
<body>
<a href="javascrip t:displayText() ">Text</a>
</body>
in the same HTML page, in a specific location?
The code I tried is the following:
<head>
<script language="JavaS cript">
function displayText()
{ document.write( "qwertyuiop ");
}
</script>
</head>
<body>
<a href="javascrip t:displayText() ">Text</a>
</body>
Comment