i want to put my web header by using .js file i know how to put .js external file but don't know how i will get my header code in java script?
should i have to create my header in design view then save it in .js file then i should put .js code into code view where i want tto display header am i right?
In .js file should has only javascript code or if you want to generate html from javascript you have to make sure there have no error in code. Can you give me some example of your javascript code that you want to put in header?
i know that in .js filw i should have only java code. ya u r right i want to generate html from java script how i can do it?
well, just be careful with quotes and {}'s and you should be fine example: var my_html_code_in_js = '<html><head><title>hello world!</title></head><body><h1>Hello World!</h1></body></html>'; you can use "\n" anywhere inside the code to have lines broken (better debug)