Welcome to CodeRanch! You placed your question in the Beginning Java forum. Java and JavaScript are unrelated languages. I moved the topic to our JavaScript forum.
What do you mean by setting it online? What isn't working? Please TellTheDetails.
Forgive me if i making difficult to understand me but i am new to javascript! Well all i want is to see is google map and marker on my website! But this doesnt happen.Instead the map show me default coordinates and marker! but when i open my js that is saved on my pc is show me the right marker and place!
Open the JavaScript console in the browser's debugger (see the JavaScript FAQ for how to open the debugger) and see if there are any errors being logged.
Compare the logs on your local machine to those on the remote machine. How do they differ?