Click here to Skip to main content
16,011,120 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: dns and web hosting ! Pin
enjoycrack18-Sep-05 19:54
enjoycrack18-Sep-05 19:54 
Questionform action Pin
namespaceuser17-Sep-05 3:02
namespaceuser17-Sep-05 3:02 
AnswerRe: form action Pin
Guffa17-Sep-05 3:26
Guffa17-Sep-05 3:26 
GeneralRe: form action Pin
namespaceuser17-Sep-05 3:47
namespaceuser17-Sep-05 3:47 
GeneralRe: form action Pin
Guffa17-Sep-05 4:00
Guffa17-Sep-05 4:00 
GeneralRe: form action Pin
namespaceuser17-Sep-05 7:27
namespaceuser17-Sep-05 7:27 
AnswerRe: form action Pin
Guffa17-Sep-05 7:47
Guffa17-Sep-05 7:47 
GeneralRe: form action Pin
namespaceuser17-Sep-05 11:39
namespaceuser17-Sep-05 11:39 
1. setting a string works :
javascript:document.forms[0].action="index2.asp";void(0);

2. setting a function does not work :
javascript:document.forms[0].onsubmit="alert();";void(0);
i've also tried this on a submit button with no luck :
javascript:document.forms[0].elements[5].onclick="alert();";void(0);
in both cases the form submits but no empty alert box is displayed(i've also tried with window.open() instead of alert()).

3. what function should i use while a page is loading so that after the page completely loads, an empty message box would be diplayed. for example:

javascript:document.onPageComplete="alert('Page Loaded');";void(0); //would wait for the page to load and display Page Loaded.

4. what should i use instead of quotes if i try to run a more complex script?
for example:
javascript:document.forms[0].elements[5].onclick="document.forms[0].onsubmit="alert('ok');";void(0);";
i can't use single quotes because these already mark a string. Should I use \' or \" ?

-- modified at 17:46 Saturday 17th September, 2005
GeneralRe: form action Pin
Guffa17-Sep-05 12:44
Guffa17-Sep-05 12:44 
GeneralRe: form action Pin
namespaceuser17-Sep-05 13:38
namespaceuser17-Sep-05 13:38 
GeneralRe: form action Pin
Guffa17-Sep-05 22:39
Guffa17-Sep-05 22:39 
AnswerRe: form action Pin
namespaceuser19-Sep-05 13:51
namespaceuser19-Sep-05 13:51 
QuestionCopy and Paste Pin
cleanDeltawater16-Sep-05 8:55
cleanDeltawater16-Sep-05 8:55 
QuestionPrinting files in javascript Pin
Gktony16-Sep-05 5:24
Gktony16-Sep-05 5:24 
AnswerRe: Printing files in javascript Pin
Turtle Hand16-Sep-05 9:26
Turtle Hand16-Sep-05 9:26 
QuestionPage Size Pin
wpcolleen15-Sep-05 23:16
wpcolleen15-Sep-05 23:16 
AnswerRe: Page Size Pin
enjoycrack16-Sep-05 0:07
enjoycrack16-Sep-05 0:07 
GeneralRe: Page Size Pin
wpcolleen16-Sep-05 2:02
wpcolleen16-Sep-05 2:02 
GeneralRe: Page Size Pin
enjoycrack16-Sep-05 2:27
enjoycrack16-Sep-05 2:27 
Questionsave excel file inside an IFRAME with ASPX Pin
andreapv15-Sep-05 22:15
andreapv15-Sep-05 22:15 
QuestionExport to Excel Pin
mjackson1115-Sep-05 17:35
mjackson1115-Sep-05 17:35 
AnswerRe: Export to Excel Pin
enjoycrack15-Sep-05 17:58
enjoycrack15-Sep-05 17:58 
QuestionProject Pin
kofler15-Sep-05 11:35
kofler15-Sep-05 11:35 
AnswerRe: Project Pin
seee sharp18-Sep-05 18:36
seee sharp18-Sep-05 18:36 
QuestionAdding Row to table causing NullReferenceException Pin
acoulter15-Sep-05 6:24
acoulter15-Sep-05 6:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.