/*Below is the format for the Javascript insertion*/ javascript: /*JAVASCRIPT CODE HERE*/ void(0);
Directions
- Type your Javascript code into a text document
- Open up any web browser.
- Go to any website.
- Replace the URL for the site with javascript:
- Paste your code at the end of javascript:
- Finally, add a space followed by void(0); to the end of the URL
- Hit [Enter] or click "Go!" to run the script
Example #1: A Name Prompt
A simple prompt for your name and then it outputs HI to you with the name you entered.
javascript: var name= prompt("What is your name?"); alert("HI, "+name); void(0);
Example #2: Edit Any Webpage
This second one can allow you to edit webpages like a Word document (only for you, though). You can take pictures (PrntScr) to show your friends what you "saw" written on a website.
javascript: document.body.contentEditable='true'; document.designMode='on'; void 0;
No comments:
Post a Comment