function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pallipalli 

How to write a java scripts in visualforce page ..............

Hi, 

 

How to write a  java scripts in one function in visualforce page ..............

 

like first name,

last name,

phone ,

email,

company .

 

validations of firstname,lastname,phone,email

;...............

 

help me friends.....................

liron169liron169

Example:

You can write in the VF page:

 

 

<script>
            function openURL()
            {
                        window.open("www.google.com");
            }

</script>

 

 

And after call for example from a button in the page:

 

 

<apex:commandButton value="openNewURL" action="openURL();"/>