View Full Version : How To Create & Run a Snippet

10-10-2012, 03:43 PM
I would like to create a Snippet for the following code. Please would you list the steps I would require to achieve this? Thank you.

javascript:alert((new String("http://www.youtube.com/get_video?video_id=%s&sk=%s&t=%s")).replace(/%s/, swfArgs.video_id).replace(/%s/, swfArgs.sk).replace(/%s/, swfArgs.t))

Philip M
10-10-2012, 05:13 PM
Place your code within script tags

<script type = "text/javascript">


and delete javascript:

The script will execute on page load. That is it will show an alert. But that is all it will do.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.