Help - Search - Members - Calendar
Full Version: HTML
Get Paid Forum - Get Paid Discussion > Webmaster's Corner > Advertising Section related to Running a website > Script Exchange > For Sale Archive
CasperXO
I have been working really hard to "know" HTML. But now I've come up against a wall. I don't know what I'm doing wrong. I took this code:

<!-- start http://exitcashflow.com/get_paid.php?ref=xxxxxxx code -->
<script language="JavaScript">
<!--
window.open('http://exitcashflow.com/get_paid.php?ref=xxxxxxx');
-->
</script>
<!-- end http://exitcashflow.com/get_paid.php?ref=xxxxxxx code -->

And tried to insert it into my website. It didn't work. I thought I'd missed something, so I went to a "Try It" site I use often and it worked. Is because it's not HTML but JavaScript? If this is the case, can anyone tell me if/how I can make it HTML? Thanks for your time and patients
aurora
are you making a pop up when the users enter the web-site?

if you are using javascript, maybe you need a function and the body onLoad

you can create an on click pop up with html, dont think you can create an onLoad pop-up with pure HTML
top-designing
You do not have an event for that action that's why i will give you both examples:

for body (when the page is loading will open another window with this page)
onload="java script:window.open('htpp://yoursite','_blank') //for another window
onload="java script:window.open('htpp://yoursite','_self')

For a button (when a user will make a click this window will be opened)

<input type="button" name="sitename" onclick="window.open('htpp://yoursite','_blank')">
Here is not necessary that JavaScript. This will open a new window when a user makes a click on tha button.

Best Regards
Top Designing
ISRalien
<!-- start http://exitcashflow.com/get_paid.php?ref=xxxxxxx code -->
<script language="JavaScript">
<!--
window.open('http://exitcashflow.com/get_paid.php?ref=xxxxxxx');
-->

</script>
<!-- end http://exitcashflow.com/get_paid.php?ref=xxxxxxx code -->
doesn't the browser treat this as a comment?
try removing it...
and why don't you try frames? aa.gif
i'm using frames aa.gif
theengineer
QUOTE
<!-- start http://exitcashflow.com/get_paid.php?ref=xxxxxxx code -->
<script language="JavaScript">
<!--
window.open('http://exitcashflow.com/get_paid.php?ref=xxxxxxx');
-->
</script>
<!-- end http://exitcashflow.com/get_paid.php?ref=xxxxxxx code -->
doesn't the browser treat this as a comment?
try removing it...
and why don't you try frames?
i'm using frames?


The comments within the <script> tag are for backwards compatibility. If the browser isn't running javascript, the comments are there to prevent them from being printed to the document. If they aren't there, you get unpredictale results with old browsers.
Comments within script tags are denoted by "//", as it is in Java, C++ and javascript.
<!-- --> Are comments for HTML. Once the reader on the browser enters the script tag, it applies different rules.

QUOTE
You do not have an event for that action that's why i will give you both examples:

It makes no difference really. The program will execute anything in the script tags with impunity. Try adding all the possible arguments to the window.open('<URL>','<Window Name>','<Params>');
example:
window.open('http://exitcashflow.com/get_paid.php?ref=xxxxxxx','_blank','WIDTH=200,HEIGHT=200');

Otherwise the code is fine. Make sure javascript is enabled and your popup-blocker is disabled. Popup blockers typically catch the "NewWindow" event set off by browsers for new instances of browsers (ie. popups in browsers).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.