Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-09-2012, 10:57 PM   PM User | #1
spacecadet11
New to the CF scene

 
Join Date: Oct 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
spacecadet11 is an unknown quantity at this point
Smile JavaScript question

Hello. Sorry potentially about this question. On a computer I use..I can first go to the 'tools' command button...then scroll down to 'developer tools'. When I get there a particular screen shows up. It displays the javascript encoded on the the particular 'page' I am viewing. Is it possible to 'alter' the code that already exists for a page? I can not seem to alter what I am viewing at all.

Can you create javascript by 'typing' in script when this screen is displayed? Or do you have to use 'notepad'?

Thanks for any and all responses
Bye
SC

Last edited by spacecadet11; 10-09-2012 at 10:59 PM.. Reason: Spelling..and additions
spacecadet11 is offline   Reply With Quote
Old 10-10-2012, 04:34 AM   PM User | #2
jmrker
Senior Coder

 
jmrker's Avatar
 
Join Date: Aug 2006
Location: FL
Posts: 2,763
Thanks: 29
Thanked 453 Times in 447 Posts
jmrker will become famous soon enough
Lightbulb

My assumption is that you are looking at the "View Source" screen display.

You cannot modify this screen and re-execute the script.
You can however copy the source, paste it to a new textfile with NotePad (or other text editor)
save the modified code and then execute it from your browser's 'open file' command.

That also assumes there are not any external files being accessed.
If there are, they need to be copied as well if they are not referenced with a complete URL.
jmrker is offline   Reply With Quote
Old 10-10-2012, 08:07 AM   PM User | #3
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,033
Thanks: 197
Thanked 2,410 Times in 2,388 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
I think he means Developer Tools (F12 in IE).

Is it possible to 'alter' the code that already exists for a page? No, no and no!

He means (say) change price = 100 to price = 1 or something.
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Philip M is offline   Reply With Quote
Old 10-10-2012, 01:40 PM   PM User | #4
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 453 Times in 451 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
in firefox's tools>web developer there is a javascript scratch pad where you can enter javascript and see what changes it makes to the page. It will only affect the local version of the page for the length of the browser session, though, of course.
xelawho is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:02 AM.


Advertisement
Log in to turn off these ads.