This code here works fine, I add a url and click a Test image button, it shows me the banner....
<script language="JavaScript">
function abc() {
url1 = document.form1.burl.value;
suburl = url1.substring(0,7);
if (suburl == "http://") {
}
else {
url1 = "http://" + url1;
}
window.open(url1,'','left=100,top=100,alwaysLowered,width=500,height=150,menubar=0,titlebar=0,toolbar=0,resizable=yes,scrollbars=0,status=no')
}
</script>
<tr><td>Banner source URL:</td><td><input name=burl value="<? echo $burl ?>"> <input type="button" name="button1" value="Test image" onClick="abc()"></td></tr>
Now I want to use this textarea in same way, so that when the window.open, it will show the html code..
So if I type in the textarea : <b>Hello World</b>
It would show Hello World in bold, in the window.open
I have no clue on how to edit this code above to work in same way.,using the textarea below
<tr><td>Text banner source (<b> <i> <u> - tags are allowed):</td><td>
<textarea name=banner_text><? echo $banner_text ?></textarea>
<input type="button" name="button2" value="Test Code" onClick="abcd()"></td></tr>